package com.sxy.service.impl;

import com.sxy.dao.BookDao;
import com.sxy.dao.impl.BookDaoImpl;
import com.sxy.service.BookService;

/**
 * @author 宋鑫宇
 * @version 1.0
 */
public class BookServiceImpl implements BookService {
    //5.删除业务层中使用new的方式创建对象
    private BookDao bookDao;

    public void save() {
        System.out.println("book service impl....");
        bookDao.save();
    }

    //6.提供对应的set方法
    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }
}
